<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 5e76254858d922004d6c9cdc
			// 请求接口，异步
			this.$api.get_user({
				user_id: '5e76254858d922004d6c9cdc'
			}).then((res) => {
				// console.log(res);
				const {
					data
				} = res
				this.$store.dispatch('set_userinfo', data)
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import 'components/gaoyia-parse/parse.css';
</style>
